package net.shao.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import net.shao.R;

/**
 * Created by shao on 2016/6/29.
 */
public class RightFragment extends Fragment{

    private Button btn_right;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        container = (ViewGroup) inflater.inflate(R.layout.right_fragment, null);
        btn_right = (Button) container.findViewById(R.id.btn_right);

        return container;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        btn_right.setText("rightFragment");
    }
}
